package com.yunxi.poc.starbucks.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunxi.poc.starbucks.entity.Tb1TransactionSale;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shiyuan.xlc
 * @since 2021-08-09
 */
public interface ITb1TransactionSaleService extends IService<Tb1TransactionSale> {

    /**
     * 计算周围门店的咖啡产能
     *
     * @param storeIds
     * @param startAt
     * @param endAt
     * @return
     */
    double calculateSales(List<Integer> storeIds, LocalDateTime startAt, LocalDateTime endAt);
}